﻿using PioneerBoilerplate.Model.Admin;
using PioneerBoilerplate.Service.Admin.DictionaryType.Input;
using AutoMapper;
using PioneerBoilerplate.Service.Admin.DictionaryType.Output;

namespace PioneerBoilerplate.Service.Admin.DictionaryType
{
    /// <summary>
    /// 映射配置
    /// </summary>
    public class MapConfig : Profile
    {
        public MapConfig()
        {
            CreateMap<DictionaryTypeAddInput, DictionaryTypeEntity>();
            CreateMap<DictionaryTypeUpdateInput, DictionaryTypeEntity>();

            CreateMap<DictionaryTypeEntity, DictionaryTypeGetOutput>(); 
            CreateMap<DictionaryTypeEntity, DictionaryTypeListOutput>();
        }
    }
}